package com.hanhai.zrb.model.user;

import java.util.Date;

import com.hanhai.zrb.model.common.CommonCounterKey.MainKeyType;

public class UserStatisticDetail {

	public enum Type{
		
		fund_col(702,MainKeyType.FUND_COL_COUNT.name(),"收藏资金"),
		pro_col(701,MainKeyType.PROJ_COL_COUNT.name(),"收藏项目"),
		inten_col(703,MainKeyType.INTENTION_COL_COUNT.name(),"收藏意向"),
		
		fund_advisory(705,MainKeyType.FUND_ADVISORY_COUNT.name(),"咨询资金"),
		pro_advisory(704,MainKeyType.PROJ_ADVISORY_COUNT.name(),"咨询项目"),
		inten_advisory(708,MainKeyType.INTENTION_ADVISORY_COUNT.name(),"咨询意向"),
		
		inten_message(709,MainKeyType.INTENTION_MESSAGE_COUNT.name(),"意向留言"),
		fund_message(707,MainKeyType.FUND_MESSAGE_COUNT.name(),"资金留言"),
		pro_message(706,MainKeyType.PROJ_MESSAGE_COUNT.name(),"项目留言"),
		
		
		inten_share(710,MainKeyType.INTENTION_SHARE_COUNT.name(),"意向分享"),
		pro_share(711,MainKeyType.PROJ_SHARE_COUNT.name(),"项目分享"),
		fund_share(712,MainKeyType.FUND_SHARE_COUNT.name(),"资金分享"),
		
		
		;
		private int code;//类型code
		private String countKey;//统计总数的key
		private String name;//类型名字
		
		private Type(int code,String countKey,String name) {
			this.code = code;
			this.countKey = countKey;
			this.name = name;
		}

		public static Type getValue(Integer code){
			if(code == null){
				return null;
			}
			for(Type type:Type.values()){
				if(code==type.getCode()){
					return type;
				}
			}
			return null;
		}
		public int getCode() {
			return code;
		}

		public String getCountKey() {
			return countKey;
		}

		public String getName() {
			return name;
		}
		
		
		
	}
    /**
     * 用户id
     */
    private Long userId;

    /**
     * 业务对应的id
     */
    private Long destId;


	/**
     * 创建时间
     */
    private Date createTime;
    
    
	private Integer type;
	

    public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    
    public Long getDestId() {
		return destId;
	}

	public void setDestId(Long destId) {
		this.destId = destId;
	}
}